package com.qyhl.school.school.center.vlog;


import com.qyhl.webtv.commonlib.entity.school.SchoolThemeBean;
import com.qyhl.webtv.commonlib.entity.school.SchoolVlogBean;

import java.util.List;

public class SchoolCenterVlogPresenter implements SchoolCenterVlogContract.SchoolCenterVlogPresenter {
    private SchoolCenterVlogContract.SchoolCenterVlogView mView;
    private SchoolCenterVlogModel mModel;

    public SchoolCenterVlogPresenter(SchoolCenterVlogContract.SchoolCenterVlogView mView) {
        this.mView = mView;
        this.mModel = new SchoolCenterVlogModel(this);
    }

    @Override
    public void getThemeList(String username) {
        mModel.getThemeList(username);
    }

    @Override
    public void getList(String username, int tagId, int lastId) {
        mModel.getList(username, tagId, lastId);
    }

    @Override
    public void setThemeList(List<SchoolThemeBean> beanList) {
        mView.setThemeList(beanList);
    }

    @Override
    public void setThemeError(String msg) {
        mView.setThemeError(msg);
    }

    @Override
    public void setList(List<SchoolVlogBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
